let isDone:boolean=true

let decLiteral: number = 6;

let name1: string = `Gene`;
let age: number = 37;
let sentence: string = "Hello, my name is " + name1 + ".\n\n" +
    "I'll be " + (age + 1) + " years old next month.";
/*     let sentence: string = `Hello, my name is ${ name }.
 I'll be ${ age + 1 } years old next month.`;*/

 let list: Array<number> = [1, 2, 3];
 let list2: Array<string> = ['1']

//  元组
let x: [string, number];
x=['s',1]


// 枚举
enum Color {Red = 1, Green, Blue}
let colorName: string = Color[2];
console.log(colorName);// 显示'Green'因为上面代码里它的值是2

// 任意值
let notSure: any = 4;
notSure = "maybe a string instead";
notSure = false; // okay, definitely a boolean
let list3: any[] = [1, true, "free"];

